package alp.starcode.nudtportal.framework.mybatis.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * user_deposit（用户充值表）
 * </p>
 *
 * @author xwx
 * @since 2023-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user_deposit")
@ApiModel(value = "UserDeposit对象", description = "user_deposit（用户充值表）")
public class UserDeposit extends Model<UserDeposit> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单流水号")
    @TableId("order_id")
    private String orderId;

    @ApiModelProperty(value = "用户流水号")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "订单编号")
    @TableField("order_number")
    private String orderNumber;

    @ApiModelProperty(value = "订单金额")
    @TableField("order_money")
    private BigDecimal orderMoney;

    @ApiModelProperty(value = "1已支付,2已取消,3已到账")
    @TableField("order_status")
    private Integer orderStatus;

    @ApiModelProperty(value = "正元支付状态：0待调用，1成功，2失败")
    @TableField("easy_status")
    private Integer easyStatus;

    @ApiModelProperty(value = "充值账户")
    @TableField("recharge_account")
    private String rechargeAccount;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Long createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    private Long updateTime;


    @Override
    protected Serializable pkVal() {
        return this.orderId;
    }

}
